package com.mzk.qBittorrentPush.controller;

import com.mzk.qBittorrentPush.entity.QBittorrentEntity;
import com.mzk.qBittorrentPush.service.PushService;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.web.bind.annotation.RequestMapping;
import org.springframework.web.bind.annotation.RestController;

@RestController
@RequestMapping("")
public class PushController {
    @Autowired
    PushService pushService;


    @RequestMapping("/qBpush")
    public void push(QBittorrentEntity qBittorrentEntity) throws Exception {
        pushService.push(qBittorrentEntity);
        System.out.println(qBittorrentEntity);

    }

}
